home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / wpasupplicant.postrm < prev    next >
Text File  |  2008-09-03  |  1KB  |  54 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was removed:
  5. #       <postrm> remove
  6. #
  7. # After the package was purged:
  8. #       <postrm> purge
  9. #
  10. # After the package was upgraded:
  11. #       <old-postrm> upgrade <new-version>
  12. # if that fails:
  13. #       <new-postrm> failed-upgrade <old-version>
  14. #
  15. #
  16. # After all of the packages files have been replaced:
  17. #       <postrm> disappear <overwriting-package> <version>
  18. #
  19. #
  20. # If preinst fails during install:
  21. #       <new-postrm> abort-install
  22. #
  23. # If preinst fails during upgrade of removed package:
  24. #       <new-postrm> abort-install <old-version>
  25. #
  26. # If preinst fails during upgrade:
  27. #       <new-postrm> abort-upgrade <old-version>
  28.  
  29. case "$1" in
  30.     remove)
  31.         ;;
  32.     purge)
  33.             # Remove logfiles
  34.             rm -f /var/log/wpa_action.log* /var/log/wpa_action.*.log*
  35.             rm -f /var/log/wpa_supplicant.log* /var/log/wpa_supplicant.*.log*
  36.         ;;
  37.     upgrade|failed-upgrade|disappear)
  38.         ;;
  39.     abort-install|abort-upgrade)
  40.         ;;
  41.     *)
  42.         echo "$0 called with unknown argument \`$1'" 1>&2
  43.         exit 1
  44.         ;;
  45. esac
  46.  
  47. # Automatically added by dh_installinit
  48. if [ "$1" = "purge" ] ; then
  49.     update-rc.d wpa-ifupdown remove >/dev/null || exit $?
  50. fi
  51. # End automatically added section
  52.  
  53. exit 0
  54.